import axios from '@/request/http'

// 获取英雄列表 (有搜索功能)
function getHerosList(params: any) {
    return axios.get('/api/rest/heros', {
        params
    })
}

// 获取英雄定位
function getHerosCategories() {
    return axios.get('/api/rest/categories')
}

// 获取装备
function getRestItems() {
    return axios.get('/api/rest/items')
}

// 添加英雄
function addHerosItem(params: any) {
    return axios.post('/api/rest/heros', params)
}

export {
    getHerosList,
    getHerosCategories,
    getRestItems,
    addHerosItem
}